package com.sky.service;

import com.sky.dto.OrdersCancelDTO;
import com.sky.dto.OrdersPageQueryDTO;
import com.sky.dto.OrdersRejectionDTO;
import com.sky.dto.OrdersSubmitDTO;
import com.sky.entity.Orders;
import com.sky.vo.OrderStatisticsVO;
import com.sky.vo.OrderSubmitVO;
import com.sky.vo.OrderVO;
import com.sky.vo.PageResult;
import io.swagger.models.auth.In;

/**
 * PROJECT_NAME: sky-take-out
 * NAME: OrdersService
 *
 * @AUTHOR: zhang
 * DATE: 2023/12/13
 * DESCRIPTION :
 */
public interface OrdersService {
    OrderSubmitVO submitOrder(OrdersSubmitDTO ordersSubmitDTO);

    PageResult getHistoryOrders(OrdersPageQueryDTO ordersPageQueryDTO);

    OrderVO getOrderDetails(Long id);

    void getOrderAgain(Long id);

    PageResult ordersSearch(OrdersPageQueryDTO pageQueryDTO);

    OrderStatisticsVO getOrdersStatusNum();

    OrderVO selectOrderDetails(Long id);

    void confirmOrder(Orders orders);

    void cancelOrder(OrdersRejectionDTO ordersRejectionDTO);

    void cancelOrders(OrdersCancelDTO ordersCancelDTO);

    void deliveryOrders(Long id);

    void completeOrder(Long id);
}
